package com.basic.backend.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

@Data
@TableName("analysis_results")
@Builder
@NoArgsConstructor // JPA 需要无参构造
@AllArgsConstructor // Builder 需要全参构造
public class AnalysisResult {
    @TableId(type = IdType.ASSIGN_ID)
    private Long analysisId;
    private Long articleId;
    private BigDecimal authenticityProbability;
    private BigDecimal aiProbability;
    private String hotWords;
    private String model;
    private Date analyzedAt;
    private String aiAnalysisSummary;
    private String aiReasoning;
    @TableLogic
    private Integer isDelete;

}